package com.xspace.android.xafcommon.util;

import com.ctnq.util.EncryptUtil;

/**
 * Created by liuchen on 2016/11/11.
 */

public class Main {

    private static String jsonStr = "{\"list\":[{\"aNum\":3,\"bNum\":1}],\"resCode\":\"0\",\"resMessage\":\"成功\"}";

    public static void main(String[] args) {

//        try {
//            Map<String, Object> resMap = JSONUtil.strJson2Map(jsonStr);
//            List<Map<String, Object>> resList = (List<Map<String, Object>>) resMap.get("list");
//            for (int i = 0; i < resList.size(); i++) {
//                Map<String, Object> res = (Map<String, Object>) resList.get(i);
//                String aNum = (String) res.get("aNum");
//                double totalActualDouble = Double.parseDouble(aNum);
//                System.out.println(totalActualDouble);
//            }
//            System.out.println(resMap);
//        } catch (Exception e) {
//            System.out.println("Exception:" + e.getMessage());
//        }

        System.out.print(EncryptUtil.getInstance().getSignData("msg_recevier_id=a31e0763582349b995a112ce1c6a5952&msg_text=我想问一下&msg_type=3&user_id=34aea537f8a04e42a052a27003dd4804"));
    }

}
